package Zuoye;

import java.util.Scanner;

public class Zuoye1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入三个整数");
        int a= scanner.nextInt();
        int b= scanner.nextInt();
        int c= scanner.nextInt();
        int r;
        if (a>b){
            r=a;a=b;b=r;
        }
        if(a>c){
            r=a;a=c;c=r;
        }
        if (b>c){
            r=b;b=c;c=r;
        }
        System.out.println("三个数字从小到大输出是：");
        System.out.println("a = " + a);
        System.out.println("b = " + b);
        System.out.println("c = " + c);
    }
}
